package com.wtwd.campus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.campus.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2023-03-07
 */
@ApiModel(value="ScheduleTask对象", description="")
public class ScheduleTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "cron表达式")
    private String cron;

    @ApiModelProperty(value = "执行者")
    private String executor;

    @ApiModelProperty(value = "上次执行服务器")
    private String lastExecuteServer;

    @ApiModelProperty(value = "执行版本2021.09.09.00:20:21")
    private String version;

    @ApiModelProperty(value = "执行状态,0-未执行,1-正在执行,2-已执行")
    private String executeStatus;

    @ApiModelProperty(value = "是否启用(0-否,1-是)")
    private String isEnable;

    @ApiModelProperty(value = "锁时间(60s)")
    private Integer lockedTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getExecutor() {
        return executor;
    }

    public void setExecutor(String executor) {
        this.executor = executor;
    }

    public String getLastExecuteServer() {
        return lastExecuteServer;
    }

    public void setLastExecuteServer(String lastExecuteServer) {
        this.lastExecuteServer = lastExecuteServer;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getExecuteStatus() {
        return executeStatus;
    }

    public void setExecuteStatus(String executeStatus) {
        this.executeStatus = executeStatus;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getLockedTime() {
        return lockedTime;
    }

    public void setLockedTime(Integer lockedTime) {
        this.lockedTime = lockedTime;
    }

    @Override
    public String toString() {
        return "ScheduleTask{" +
        "id=" + id +
        ", cron=" + cron +
        ", executor=" + executor +
        ", lastExecuteServer=" + lastExecuteServer +
        ", version=" + version +
        ", executeStatus=" + executeStatus +
        ", isEnable=" + isEnable +
        ", lockedTime=" + lockedTime +
        "}";
    }
}
